package com.sjq.demo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.sql.Blob;
import java.io.Serializable;

import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 人员表
 * </p>
 *
 * @author yer
 * @since 2020-12-23
 */
@Builder
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_test_user")
public class TestUser extends Model<TestUser> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 姓名
     */
    private String name;

    /**
     * 年龄
     */
    private Integer age;

    /**
     * 性别
     */
    private String sex;

    /**
     * 职业
     */
    private String job;

    /**
     * 地址
     */
    private String address;

    /**
     * 照片
     */
    private Blob xp;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
